﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace road2.Model
{
    public class RoadClass : BaseRoadObj
    {
        private int _length;

        public int Length
        {
            get { return _length; }
            set { _length = value; RaisePropertyChanged("Length"); }
        }

        private int _lineCount;

        public int LineCount
        {
            get { return _lineCount; }
            set { _lineCount = value; RaisePropertyChanged("LineCount"); }
        }

        private int _speedLimit;

        public int SpeedLimit
        {
            get { return _speedLimit; }
            set { _speedLimit = value; RaisePropertyChanged("SpeedLimit"); }
        }

        private CrossRoadClass _beginCR;

        public CrossRoadClass BeginCR
        {
            get { return _beginCR; }
            set { _beginCR = value; RaisePropertyChanged("BeginCR"); }
        }

        private CrossRoadClass _endCR;

        public CrossRoadClass EndCR
        {
            get { return _endCR; }
            set { _endCR = value; RaisePropertyChanged("EndCR"); }
        }

        public RoadClass(Guid id, int length, int lineCount, int speedLimit):base(id)
        {
            this.Length = length;
            this.LineCount = lineCount;
            this.SpeedLimit = speedLimit;
        }
    }
}
